import service from './request' 
// 轮播图请求封装成一个函数
export function api_banner_list (payload = {}){    //命名导出
    return service.get('/api/banner/list',payload) 
}
// 推选请求封装函数
export function api_shop_list(payload = {}) {
    return service.get('/api/shop/list',payload)
}
// 爆爆团接口
export function api_tuan_list(payload = {}) {
    return service.get('/api/tuan/list',{params:payload})
}
//注册接口
export function api_user_register(payload = {}) {
    return service.post('/api/user/register',payload)
}
//登录接口
export function api_user_login(payload = {}) {
    return service.post('/api/user/login',payload)
}
// 列表地址
export function api_address_list(payload = {}) {
    return service.get('/api/address/list',{params:payload})
}
// 新增收货地址
export function api_address_add(payload = {}) {
    return service.post('/api/address/add',payload)
}
// // 收获地址编辑
// export function api_address_edit(payload = {}) {
//     return service.post('/api/address/edit',payload)
// }
// 删除地址
export function api_address_del(payload = {}) {
    return service.post('/api/address/edit',payload)
}